package com.sdyhlt.user.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author weifx
 * @Date 2021/7/12 17:04
 * @ModifyDate 2021/7/12 17:04
 * @Version 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @PostMapping("/receive")
    @SentinelResource(value = "receive")
    public String receive(){
        System.out.println("数据接收成功");
        return "OK";
    }
}